Intra-frame prediction and decoding methods and apparatuses for image signal

ABSTRACT

An intra-frame decoding method includes obtaining, from a video code stream, prediction mode information of a first signal component of a current block, determining a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of a linear model above (LMA) mode and a linear model left (LML) mode; obtaining a predicted value of a first signal component sampling point of the current block; and obtaining a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a continuation of U.S. patent application Ser. No. 17/104,894 filed on Nov. 25, 2020, which is a continuation of U.S. patent application Ser. No. 16/598,765 filed on Oct. 10, 2019, now U.S. Pat. No. 10,855,993, which a continuation of U.S. patent application Ser. No. 16/394,763; filed on Apr. 25, 2019, now U.S. Pat. No. 10,455,236, which is a continuation of U.S. patent application Ser. No. 15/862,240 filed on Jan. 4, 2018, now U.S. Pat. No. 10,313,677, which is a continuation of U.S. patent application Ser. No. 15/254,669 filed on Sep. 1, 2016, now U.S. Pat. No. 9,900,601, which is a continuation of U.S. patent application Ser. No. 14/265,788 filed on Apr. 30, 2014, now U.S. Pat. No. 9,462,273, which is a continuation of International Patent Application No. PCT/CN2012/084079 filed on Nov. 5, 2012, which claims priority to Chinese Patent Application No. 201110347750.2 filed on Nov. 4, 2011. All of the aforementioned patent applications are hereby incorporated by reference in their entireties.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

Not applicable.

REFERENCE TO A MICROFICHE APPENDIX

Not applicable.

TECHNICAL FIELD

The present disclosure relates to the field of communications technologies, and in particular, to an intra-frame decoding method and apparatus for a signal component sampling point of an image block and a prediction method and apparatus for a signal component sampling point of an image block.

BACKGROUND

Existing video image coding technologies include an intra-frame coding technology and an inter-frame coding technology. Intra-frame coding is a technology of coding image content using only spatial correlation in a currently coded image block. Inter-frame coding is a technology of coding a currently coded image block using time correlation between the currently coded image block and a coded image block.

To increase intra-frame coding efficiency for an image, an intra-frame prediction technology is first introduced in the H.264 Advanced Video Coding (H.264/AVC) standard to remove spatial information redundancy between a currently coded image block (hereinafter referred to as a current block) and an adjacent coded image block. The High Efficiency Video Coding (HEVC) solution is a new-generation video coding standardization solution currently being studied by the International Organization for Standardization, which inherits and is extended from the intra-frame prediction coding technology in the H.264/AVC standard. A prediction mode set of a chrominance component of an image block may include six optional prediction modes: a direct mode (DM) mode: prediction is performed using a prediction mode of a luminance component of a current block as a prediction mode of a chrominance component of the current block, a linear method (LM) mode: a predicted value of a chrominance component sampling point is calculated based on a correlation model using a reconstructed value of a luminance component sampling point, where a parameter of the correlation model is obtained through calculation according to reconstructed values of luminance component and chrominance component sampling points right above and on the left of a current block, a direct current (DC) mode: an average value of reconstructed values of adjacent chrominance component sampling points right above and on the left of a current block is used as a predicted value of a chrominance component sampling point of the current block, a planar mode: a predicted value of a chrominance component sampling point of a current block is calculated based on an assumption of spatial smooth linear variation of values of chrominance component sampling points, a horizontal mode: a reconstructed value of a chrominance component sampling point on the left side of a current block is used as a predicted value of all chrominance component sampling points in a same row of the current block, and a vertical mode: a reconstructed value of an adjacent chrominance component sampling point right above a current block is used as a predicted value of all chrominance component sampling points in a same column of the current block.

Among the foregoing prediction modes, the DC mode, the vertical mode, the horizontal mode, and the planar mode have a same basic principle as corresponding prediction modes in the H.264/AVC standard, but specific implementation methods are different. The LM mode and the DM mode are two newly added prediction modes.

However, in the existing HEVC solution, a prediction mode set of a chrominance component cannot adapt to the diversity of edge positions of a current block, and in some cases, a prediction effect needs to be improved.

SUMMARY

Embodiments of the present disclosure provide an intra-frame decoding method and apparatus for a signal component sampling point of an image block and a prediction method and apparatus for a signal component sampling point of an image block to improve the accuracy of intra-frame prediction of a current block.

An embodiment of the present disclosure provides a prediction method for a signal component sampling point of an image block, which includes calculating, based on a correlation model, a predicted value of a first signal component sampling point of a current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point above the current block and a reconstructed value of a second adjacent signal component sampling point above the current block.

An embodiment of the present disclosure further provides a prediction method for a signal component sampling point of an image block, which includes calculating, based on a correlation model, a predicted value of a first signal component sampling point of a current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of the current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block.

An embodiment of the present disclosure further provides an intra-frame decoding method for a signal component sampling point of an image block, which includes obtaining, from a video code stream, prediction mode information of a first signal component of a current block, determining a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of a linear model above (LMA) mode and a linear model left (LML) mode, obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and obtaining a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

An embodiment of the present disclosure further provides an intra-frame decoding method for a signal component sampling point of an image block, which includes obtaining, from a video code stream, prediction mode information of a first signal component of a current block, determining a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component includes a prediction mode based on a correlation model, and the prediction mode based on the correlation model is determined depending on a prediction mode of a second signal component of the current block, obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and obtaining a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

An embodiment of the present disclosure further provides a prediction apparatus for a signal component sampling point of an image block, which includes a first parameter unit configured to obtain a parameter of a correlation model through calculation according to a reconstructed value of a first adjacent signal component sampling point above a current block and a reconstructed value of a second adjacent signal component sampling point above the current block, and a first predicting unit configured to calculate, based on the correlation model, a predicted value of a first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and the parameter of the correlation model.

An embodiment of the present disclosure further provides a prediction apparatus for a signal component sampling point of an image block, which includes a second parameter unit configured to obtain a parameter of a correlation model through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of a current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block, and a second predicting unit configured to calculate, based on the correlation model, a predicted value of a first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and the parameter of the correlation model.

An embodiment of the present disclosure further provides an intra-frame decoding apparatus for a signal component sampling point of an image block, which includes a first obtaining unit configured to obtain, from a video code stream, prediction mode information of a first signal component of a current block, a first determining unit configured to determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of an LMA mode and an LML mode, a third predicting unit configured to obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and a first calculating unit configured to obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

An embodiment of the present disclosure further provides an intra-frame decoding apparatus for a signal component sampling point of an image block, which includes a second obtaining unit configured to obtain, from a video code stream, prediction mode information of a first signal component of a current block, a second determining unit configured to determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component includes a prediction mode based on a correlation model, and the prediction mode based on the correlation model is determined depending on a prediction mode of a second signal component of the current block, a fourth predicting unit configured to obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and a second calculating unit configured to obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

According to the technical solutions provided in the embodiments of the present disclosure, using a technical means of introducing an LMA mode and an LML mode in a process of intra-frame prediction of a current block, the accuracy of intra-frame prediction of the current block is improved.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show merely some embodiments of the present disclosure, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIGS. 1A, 1B, and 1C are schematic diagrams of a luminance-chrominance (YUV) format.

FIG. 2 is a schematic diagram of an L-type template used for an LM mode.

FIGS. 3A and 3B are schematic diagrams showing distribution of sampling points in an L-type template and objects in a current block.

FIG. 4 is a schematic diagram of a template used for an LMA mode.

FIG. 5 is a schematic diagram of a template used for an LML mode.

FIG. 6 is a flowchart of an intra-frame decoding method for a signal component sampling point of an image block according to an embodiment of the present disclosure.

FIG. 7 is a flowchart of an intra-frame decoding method for a signal component sampling point of an image block according to another embodiment of the present disclosure.

FIG. 8 is an effect diagram of a V component of a reconstructed image obtained using an embodiment of the present disclosure.

FIG. 9 is an effect diagram of a V component of a reconstructed image obtained using the HEVC technical solution.

FIG. 10 is an effect diagram of a technical solution according to an embodiment of the present disclosure.

FIG. 11 is a schematic diagram of a prediction apparatus for a signal component sampling point of an image block according to an embodiment of the present disclosure.

FIG. 12 is a schematic diagram of a prediction apparatus for a signal component sampling point of an image block according to another embodiment of the present disclosure.

FIG. 13 is a schematic diagram of an intra-frame decoding apparatus for a signal component sampling point of an image block according to an embodiment of the present disclosure.

FIG. 14 is a schematic diagram of an intra-frame decoding apparatus for a signal component sampling point of an image block according to another embodiment of the present disclosure.

DETAILED DESCRIPTION

The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The embodiments to be described are merely a part rather than all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

A video image signal generally includes one luminance component and two chrominance components. The luminance component is generally indicated by a symbol Y, and the chrominance components are generally indicated by symbols U and V. As shown in FIGS. 1A, 1B, and 1C, common YUV formats include the following formats, where a cross shown in FIGS. 1A, 1B, 1C indicates a luminance component sampling point, and a circle indicates each chrominance component sampling point: a 4:4:4 format: indicating that no downsampling is performed on a chrominance component, a 4:2:2 format: indicating that 2:1 horizontal downsampling is performed on a chrominance component relative to a luminance component, but no vertical downsampling is performed, where for every two U sampling points or V sampling points, each scan line includes four Y sampling points, and a 4:2:0 format: indicating that 2:1 horizontal downsampling and 2:1 vertical downsampling are performed on a chrominance component relative to a luminance component.

In a case where a video image uses a YUV4:2:0 format, if a luminance component of an image block is an image block with a size of 2N×2N, a chrominance component of the image block is an image block with a size of N×N. In the embodiments of the present disclosure, the technical solutions of the present disclosure are described using the 4:2:0 format as an example. However, it may be understood that, in addition to the YUV4:2:0 format, the technical solutions of the present disclosure may also be applied to other YUV formats, or mutual prediction between different components in other video image formats, such as a red green blue (RGB) format. In another aspect, a current block may be a square block, or may be a non-square rectangular block or an area in another shape, to which the technical solutions provided in the embodiments of the present disclosure are also applicable.

For convenience of description, in the embodiments of the present disclosure, expressions such as a first signal component and a second signal component are used. If an image signal includes a luminance signal component and a chrominance signal component, the first signal component may be a chrominance component, and the second signal component may be a luminance component, if the image signal includes three signal components red (R), green (G), and blue (B), the first signal component may be any signal component in the three signal components R, G, and B, and the second signal component may be a signal component different from the first signal component in the three signal components R, G, and B, and if the image signal is decomposed into a plurality of signal components in another manner, the first signal component and the second signal component may be specified using a similar method.

In the embodiments of the present disclosure, because two chrominance components can be predicted from a luminance component using a same method, the technical solutions according to the embodiments of the present disclosure may be described in the following using L to indicate a luminance component and using C to indicate any one of chrominance components. A predicted value of any chrominance component sampling point may be obtained by mapping a reconstructed value of a luminance component sampling point at a same position according to a correlation function relation f(x). When there is no luminance component sampling point at the same position corresponding to a chrominance component sampling point (a position relation between a luminance component sampling point and a chrominance component sampling point in the YUV 4:2:0 format as shown in FIG. 1C), a luminance component may be first re-sampled to a position of the chrominance component sampling point to obtain L′, and then prediction is performed, as shown in Formula (2.1). In this case, each chrominance component sampling point has one luminance component value and one chrominance component value. Sample_(C) ^(pred) [j,i]=f(Sample_(L) ′[j,i])  (2.1)

Herein, the correlation function relationship f(x) is used to express a correlation model from a luminance component value to a chrominance component value of a sampling point, and it may be a linear function, or may be another function such as a quadratic polynomial. The embodiments of the present disclosure are described using a linear function model shown in Formula (2.2) as an example. Parameters α and β of the linear model may be obtained through calculation according to reconstructed values of a group of luminance component sampling points and chrominance component sampling points. f(x)=αx+β  (2.2)

The group of selected sampling points used for calculating the parameters α and β is called a template in the embodiments of the present disclosure. In the embodiments of the present disclosure, as shown in FIG. 2 , an L-type template is used for an LM mode. The LM mode is a prediction mode for calculating a predicted value of a first component sampling point of a current block based on reconstructed values of first adjacent signal component sampling points above and on the left side of the current block, reconstructed values of second adjacent signal component sampling points above and on the left side of the current block, and a reconstructed value of a second component sampling point of the current block.

The accuracy of the parameters α and β directly influences the accuracy of the predicted value of the chrominance component sampling point. The L-type template used for the foregoing LM mode includes only N adjacent points right above the current block and N adjacent points on the left side of the current block. Generally, the L-type template is effective. For example, an image block shown in FIG. 3A includes two objects, which have different chrominance components (a grey area and a white area represent two objects). However, in the L-type template, a plurality of sampling points belongs to a same object as a part of sampling points in the current block. In this case, correlation between a luminance component and a chrominance component derived from the sampling points in the L-type template is quite similar to correlation between components in the current block. Therefore, a value of a chrominance component sampling point in the current block can be accurately predicted, based on the foregoing linear relation, from a reconstructed value of a luminance component sampling point. However, if the two objects in the current block are distributed as shown in FIG. 3B (a grey area and a white area represent two objects with different chrominance components), that is, no sampling point in the L-type template belongs to a same object as a sampling point in the grey area, in this case, the parameters α and β obtained through calculation cannot indicate correlation between a luminance component and a chrominance component of the grey area. As a result, a value of a chrominance component sampling point of the grey area cannot be accurately predicted using a linear relation derived in this case.

To accurately predict a value of a chrominance component sampling point in a current block, the embodiments of the present disclosure provide two new prediction modes, that is, an LMA mode and an LML mode.

As shown in FIG. 4 , the LMA mode is a prediction mode for calculating a predicted value of a first component sampling point of a current block based on a reconstructed value of a first adjacent signal component sampling point above the current block, a reconstructed value of a second adjacent signal component sampling point above the current block, and a reconstructed value of a second component sampling point of the current block.

In the embodiment of the present disclosure, the calculating the predicted value of the first component sampling point of the current block based on the reconstructed value of the first adjacent signal component sampling point above the current block, the reconstructed value of the second adjacent signal component sampling point above the current block, and the reconstructed value of the second component sampling point of the current block is only calculating the predicted value of the first component sampling point of the current block based on the reconstructed value of the first adjacent signal component sampling point above the current block, the reconstructed value of the second adjacent signal component sampling point above the current block, and the reconstructed value of the second component sampling point of the current block, that is, sampling points on the left side and on the lower left of the current block are not used in a process of calculating the predicted value of the first component sampling point of the current block.

As shown in FIG. 5 , the LML mode is a prediction mode for calculating a predicted value of a first component sampling point of a current block based on a reconstructed value of a first adjacent signal component sampling point on the left side of the current block, a reconstructed value of a second adjacent signal component sampling point on the left side of the current block, and a reconstructed value of a second component sampling point of the current block.

In the embodiment of the present disclosure, the calculating the predicted value of the first component sampling point of the current block based on the reconstructed value of the first adjacent signal component sampling point on the left side of the current block, the reconstructed value of the second adjacent signal component sampling point on the left side of the current block, and the reconstructed value of the second component sampling point of the current block is only calculating the predicted value of the first component sampling point of the current block based on the reconstructed value of the first adjacent signal component sampling point on the left side of the current block, the reconstructed value of the second adjacent signal component sampling point on the left side of the current block, and the reconstructed value of the second component sampling point of the current block, that is, sampling points right above and on the upper right of the current block are not used in a process of calculating the predicted value of the first component sampling point of the current block.

In the following, with reference to FIG. 4 , a prediction method for a signal component sampling point of an image block provided in an embodiment of the present disclosure is described as follows calculating, based on a correlation model, a predicted value of a first signal component sampling point of a current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point above the current block and a reconstructed value of a second adjacent signal component sampling point above the current block.

As described above, in the embodiment of the present disclosure, a first signal component may be a chrominance component, and a second signal component may be a luminance component. In the following, the chrominance component and the luminance component are used as an example for description. In the embodiment of the present disclosure, the correlation model may be a linear model, or may be a quadratic polynomial model or another correlation model.

In the embodiment of the present disclosure, the term “above” in “above the current block” may be right above, or upper left, or upper right, or a combination of right above, upper left and upper right.

It may be understood that, adjacent signal component sampling points above the current block may be all adjacent sampling points above the current block, or a part of adjacent sampling points above the current block, for example, a part of sampling points right above and a part of sampling points on the upper left of the current block are selected.

In the embodiment of the present disclosure, a size of a chrominance component image of the current block is nS, a value of an adjacent chrominance component sampling point above the current block is Rec_(C)[x, y], a reconstructed value of a luminance component sampling point of the current block is Rec_(L)[x, y], and a reconstructed value of an adjacent luminance component sampling point above the current block is Rec_(L)[x, y], where values of [x,y] in the two Rec_(L)[x, y] are different. Output of the embodiment of the present disclosure is a predicted value Pred_(C)[x, y] of a chrominance component sampling point.

The foregoing values of the sampling points are obtained through reconstruction in a decoding operation before this process. Because a patent technology is described using a square block as an example in the present disclosure, that the size of the chrominance component image of the current block is nS indicates that the chrominance component image of the current block includes nS×nS sampling points.

This procedure includes the following steps.

S401: Perform a re-sampling operation on a reconstructed value of a luminance component sampling point of a current block and a reconstructed value of an adjacent luminance component sampling point outside the current block, to obtain a reconstructed value Rec_(L)′[x,y] of a luminance component sampling point at a position of a chrominance component sampling point of the current block, where the reconstructed value Rec_(L)′[x,y] is obtained after re-sampling, [x,y] indicates coordinates of the chrominance component sampling point, and a sampling point in an upper left corner of the current block may be selected as an origin of the coordinates. Definitely, if a reconstructed value of a luminance component sampling point exists at the position of the chrominance component sampling point of the current block, the re-sampling operation is not required.

A re-sampling method is related to a sampling format of a video image signal. A purpose of re-sampling is to obtain a sampling value of a luminance component at the position of the chrominance component sampling point of the current block. As shown in FIG. 4 , for a re-sampling manner used for the YUV4:2:0 format, a calculation method is as follows: Rec_(L) ′[x,y]=(Rec_(L)[2x,2y]+Rec_(L)[2x,2y+1])>>1  (2.3)

-   -   where (x,y)∈{(x,y)|x=0, . . . , 2*nS−1; y=−1}∪{(x,y)|x,y=0, . .         . , nS−1}.

{(x,y)|x=0, . . . , 2*nS−1} indicates an adjacent chrominance component sampling point above the current block, {(x,y)|x=0, . . . , 2*nS−1} indicates the chrominance component sampling point of the current block, and Rec_(L)′[x,y] indicates a luminance component sampling value at the position of the chrominance component sampling point of the current block, where the luminance component sampling value is obtained after re-sampling.

In addition to the foregoing re-sampling method, another re-sampling method may also be adopted.

The foregoing adjacent chrominance component sampling point {(x,y)|x=0, . . . , 2*nS−1; y=−1} above the current block forms a template for the LMA mode. Reconstructed values of luminance components and reconstructed values of chrominance components of all sampling points in the template are used for calculating parameters α and β in a linear model.

S402: Calculate the parameters α and β in the linear model.

A linear regression technique is used to calculate the parameters α and β in the linear model. Formulas (2.4) and (2.5) show an implementation method.

$\begin{matrix} {\alpha = \frac{{I*{LC}} - {C*L}}{{I*{LL}} - L^{2}}} & (2.4) \end{matrix}$ $\begin{matrix} {\beta = \frac{C - {\alpha*L}}{I}} & (2.5) \end{matrix}$

where I indicates the number of sampling points in the template, L indicates a sum of reconstructed values of all luminance component sampling points in the template, C indicates a sum of reconstructed values of all chrominance component sampling points in the template, LL indicates a quadratic sum of the reconstructed values of all the luminance component sampling points in the template, and LC indicates a sum of products of the reconstructed values of all the luminance component sampling points and the reconstructed values of all the chrominance component sampling points in the template. L, C, LL, and LC may be obtained through calculation using Formulas (2.6), (2.7), (2.8), and (2.9).

$\begin{matrix} {L = {\sum\limits_{x = 0}^{{2*{nS}} - 1}{{Rec}_{L}^{\prime}\left\lbrack {x,{- 1}} \right\rbrack}}} & (2.6) \end{matrix}$ $\begin{matrix} {C = {\sum\limits_{x = 0}^{{2*{nS}} - 1}{{Rec}_{C}\left\lbrack {x,{- 1}} \right\rbrack}}} & (2.7) \end{matrix}$ $\begin{matrix} {{LL} = {\sum\limits_{x = 0}^{{2*{nS}} - 1}{{Rec}_{L}^{\prime}\left\lbrack {x,{- 1}} \right\rbrack}^{2}}} & (2.8) \end{matrix}$ $\begin{matrix} {{LC} = {\sum\limits_{x = 0}^{{2*{nS}} - 1}{{{Rec}_{L}^{\prime}\left\lbrack {x,{- 1}} \right\rbrack}*{{Rec}_{C}\left\lbrack {x,{- 1}} \right\rbrack}}}} & (2.9) \end{matrix}$

S403: Calculate a predicted value Pred_(C)[x,y] of the chrominance component sampling point of the current block.

By substituting the parameters α and β obtained through calculation into the linear model, the predicted value Pred_(C)[x,y] of the chrominance component sampling point of the current block can be obtained through calculation based on the luminance component sampling value Pred_(L)′[x, y] at the position of the chrominance component sampling point of the current block, where the luminance component sampling value Pred_(L)′[x, y] is obtained after re-sampling. An implementation manner is shown in Formula (2.10). Pred_(C) [x,y]=α*Rec_(L) ′[x,y]+β  (2.10)

-   -   where x,y=0, . . . , nS−1.

In the following, with reference to FIG. 5 , a prediction method for a signal component sampling point of an image block provided in an embodiment of the present disclosure is described as follows calculating, based on a correlation model, a predicted value of a first signal component sampling point of a current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of the current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block.

As described above, in the embodiment of the present disclosure, a first signal component may be a chrominance component, and a second signal component may be a luminance component. In the following, the chrominance component and the luminance component are used as an example for description. In the embodiment of the present disclosure, the correlation model may be a linear model, or may be a quadratic polynomial model or another correlation model.

In the embodiment of the present disclosure, the term “left side” in “on the left side of the current block” may be left, or upper left, or lower left, or a combination of left, upper left and lower left.

It may be understood that, adjacent signal component sampling points on the left side of the current block may be all adjacent sampling points on the left side of the current block, or a part of adjacent sampling points on the left side of the current block, for example, a part of sampling points on the left of and a part of sampling points on the upper left of the current block are selected.

In the embodiment of the present disclosure, a size of a chrominance component image of the current block is nS, a value of an adjacent chrominance component sampling point on the left side of the current block is Rec_(C)[x,y], a reconstructed value of a luminance component sampling point of the current block is Rec_(L)[x,y], and a reconstructed value of an adjacent luminance component sampling point on the left side of the current block is Rec_(L)[x,y] where values of [x,y] in the two Rec_(L)[x,y] are different. Output of the embodiment of the present disclosure is a predicted value Pred_(C)[x,y] of a chrominance component sampling point.

The foregoing values of the sampling points are obtained through reconstruction in a decoding operation before this process. Because a patent technology is described using a square block as an example in the present disclosure, that the size of the chrominance component image of the current block is nS indicates that the chrominance component image of the current block includes nS×nS sampling points.

This procedure includes the following steps.

S501: Perform a re-sampling operation on a reconstructed value of a luminance component sampling point of a current block and a reconstructed value of an adjacent luminance component sampling point outside the current block, to obtain a luminance component sampling value Pred_(L)′[x,y] at a position of a chrominance component sampling point of the current block, where the luminance component sampling value Pred_(C)[x,y] is obtained after re-sampling, [x,y] indicates coordinates of the chrominance component sampling point, and a sampling point in an upper left corner of the current block may be selected as an origin of the coordinates. Definitely, if a reconstructed value of a luminance component sampling point exists at the position of the chrominance component sampling point of the current block, the re-sampling operation is not required.

A re-sampling method is related to a sampling format of a video image signal. A purpose of re-sampling is to obtain a reconstructed value of a luminance component sampling point at the position of the chrominance component sampling point of the current block. As shown in FIG. 5 , for a re-sampling manner used for the YUV4:2:0 format, a calculation method is as follows: Rec_(L) ′[x,y]=(Rec_(L)[2x,2y]+Rec_(L)[2x,2y+1])>>1  (2.11)

where (x,y)∈{(x,y)|x=−1; y=0, . . . , 2*nS−1}∪{(x,y)|x,y=0, . . . , nS−1}.

{(x,y)|x=−1; y=0, . . . , 2*nS−1} indicates an adjacent chrominance component sampling point on the left side of the current block {(x,y)|x,y=0, . . . , nS−1} indicates the chrominance component sampling point of the current block, and Rec_(L)′[x,y] indicates the luminance component sampling value at the position of the chrominance component sampling point of the current block, where the luminance component sampling value is obtained after re-sampling.

In addition to the foregoing re-sampling method, another re-sampling method may also be adopted.

The foregoing adjacent chrominance component sampling point {(x,y)|x=−1; y=0, . . . , 2*nS−1} on the left side of the current block forms a template for the LML mode. Reconstructed values of luminance components and reconstructed values of chrominance components of all sampling points in the template are used for calculating parameters α and β in a linear model.

S502: Calculate the parameters α and β in the linear model.

A linear regression technique is used to calculate the parameters α and β in the linear model. Formulas (2.4) and (2.5) show an implementation method.

$\begin{matrix} {\alpha = \frac{{I*{LC}} - {C*L}}{{I*{LL}} - L^{2}}} & (2.4) \end{matrix}$ $\begin{matrix} {\beta = \frac{C - {\alpha*L}}{I}} & (2.5) \end{matrix}$

where I indicates the number of sampling points in the template, L indicates a sum of reconstructed values of all luminance component sampling points in the template, C indicates a sum of reconstructed values of all chrominance component sampling points in the template, LL indicates a quadratic sum of the reconstructed values of all the luminance component sampling points in the template, and LC indicates a sum of products of the reconstructed values of all the luminance component sampling points and the reconstructed values of all the chrominance component sampling points in the template. L, C, LL, and LC may be obtained through calculation using Formulas (2.12), (2.13), (2.14), and (2.15).

$\begin{matrix} {L = {\sum\limits_{y = 0}^{{2*{nS}} - 1}{{Rec}_{L}^{\prime}\left\lbrack {{- 1},y} \right\rbrack}}} & (2.12) \end{matrix}$ $\begin{matrix} {C = {\sum\limits_{y = 0}^{{2*{nS}} - 1}{{Rec}_{C}\left\lbrack {{- 1},y} \right\rbrack}}} & (2.13) \end{matrix}$ $\begin{matrix} {{LL} = {\sum\limits_{y = 0}^{{2*{nS}} - 1}{{Rec}_{L}^{\prime}\left\lbrack {{- 1},y} \right\rbrack}^{2}}} & (2.14) \end{matrix}$ $\begin{matrix} {{LC} = {\sum\limits_{y = 0}^{{2*{nS}} - 1}{{{Rec}_{L}^{\prime}\left\lbrack {{- 1},y} \right\rbrack}*{{Rec}_{C}\left\lbrack {{- 1},y} \right\rbrack}}}} & (2.15) \end{matrix}$

S503: Calculate a predicted value Pred_(C)[x,y] of the chrominance component sampling point of the current block.

By substituting the parameters α and β obtained through calculation into the linear model, the predicted value Pred_(C)[x,y] of the chrominance component sampling point of the current block can be obtained through calculation based on the luminance component sampling value Rec_(L)′[x,y] at the position of the chrominance component sampling point of the current block, where the luminance component sampling value Rec_(L)′[x,y] is obtained after re-sampling. An implementation manner is shown in Formula (2.10). Pred_(C) [x,y]=α*Rec_(L) ′[x,y]+β(2.10)

-   -   where x,y=0, . . . , nS−1.

In the following, with reference to FIG. 6 , an intra-frame decoding method for a signal component sampling point of an image block provided in an embodiment of the present disclosure is described.

S601: Obtain, from a video code stream, prediction mode information of a first signal component of a current block.

S602: Determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of an LMA mode and an LML mode.

As described above, in the embodiment of the present disclosure, the first signal component may be a chrominance component, and a second signal component may be a luminance component. In the following, the chrominance component and the luminance component are used as an example for description.

In the embodiment of the present disclosure, the chrominance component of the current block may have its own independent chrominance prediction mode, or may share a same chrominance prediction mode with a chrominance component of an adjacent image block. For example, in an existing HEVC encoding and decoding solution, each predicting unit has an independent prediction mode, and one predicting unit may include one or more transform units. In an encoding and decoding process of a chrominance component, a prediction operation is performed for the current block based on the transform unit. If one predicting unit includes only one transform unit, the transform unit has its own independent prediction mode, and if one predicting unit includes a plurality of transform units, the plurality of transform units uses a same prediction mode.

A decoding end may adopt an adaptive arithmetic entropy decoding method, variable length decoding, fixed length decoding or another entropy decoding method to obtain, from a code stream, prediction mode information of a chrominance component, where the prediction mode information is expressed by a code word, and then determine a prediction mode of a chrominance component of a current predicting unit according to correspondence between a code word and a prediction mode to determine a prediction mode of a chrominance component of a transform unit in the predicting unit, that is, the current block. Specifically, which entropy decoding method to be adopted depends on a code word designing method of an intra-frame prediction mode for chrominance. A code table shown in Table 1 shows correspondence between an available code word and a prediction mode of a chrominance component.

TABLE 1 Code table of a prediction mode of a chrominance component Prediction Mode of Code Word Chrominance Component 0 DM mode 101 LM mode 1001 LMA mode 1000 LML mode 110 Planar mode 1110 Vertical mode 11110 Horizontal mode 11111 DC mode

A code word of an original prediction mode of the chrominance component in the HEVC solution is a Truncated Unary (TU) code. In this embodiment, a code word 10 of the LM mode is extended, and in addition, suffix code words 1, 01, and 10 are added to distinguish the LM mode, a newly added LMA mode, and an LML mode to obtain the code table shown in Table 1. Obviously, other code words may also be selected for the LMA mode and the LML mode to form a new code table. In addition, a single TU code, a Huffman code, a fixed length code or another code word, or a combined code word with different code words may also be adopted to specify a corresponding code word for all prediction modes of the chrominance component to form a new code table.

For the code table shown in Table 1, it may be considered that the prediction mode set of the first signal component of the current block includes the DM mode, the LM mode, the LMA mode, the LML mode, the planar mode, the vertical mode, the horizontal mode, and the DC mode.

S603: Obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block.

In the embodiment of the present disclosure, if the prediction mode of the first signal component of the current block that is determined from the prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block is the LMA mode, the obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block includes calculating, based on a correlation model, the predicted value of the first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point above the current block and a reconstructed value of a second adjacent signal component sampling point above the current block.

If the prediction mode of the first signal component of the current block that is determined from the prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block is the LML mode, the obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block includes calculating, based on a correlation model, the predicted value of the first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of the current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block.

A specific prediction method has been described in detail in the embodiments shown in FIG. 4 and FIG. 5 , and is not described herein again.

S604: Obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

A reconstructed value of a chrominance component sampling point of the current block is calculated based on an obtained predicted value of the chrominance component sampling point of the current block and a residual value of the chrominance component sampling point of the current block, where the residual value is obtained through reconstruction. The residual value of the chrominance component sampling point of the current block may be obtained based on residual information of the chrominance component sampling point of the current block, where the residual information is obtained from a video code stream. Specifically, the H.264/AVC standard or a method in the existing HEVC solution may be adopted to reconstruct the residual value of the chrominance component sampling point of the current block, which is not described herein again.

In some implementation manners, another code table may be adopted in S602, and a code table shown in Table 2 shows correspondence between an available code word and a prediction mode of a chrominance component.

TABLE 2 Code table of a prediction mode of a chrominance component Prediction Mode of Code Word Chrominance Component 0 DM mode 10 LM mode 110 LMA mode 111 LML mode

Code words of original six prediction modes of the chrominance component in the HEVC solution are TU codes. In this embodiment, four existing HEVC prediction modes are removed, and TU codes are used to design code words for the LMA, LML and other remaining modes. Obviously, the code table may also be redesigned by removing one or more other existing HEVC prediction modes, or adding a new suitable prediction mode. A new code table may adopt a single TU code, a Huffman code, a fixed length code or another code word, or a combined code word with different code words to specify a corresponding code word for all optional prediction modes of the chrominance component.

For the code table shown in Table 1, it may be considered that the prediction mode set of the first signal component of the current block includes: the DM mode, the LM mode, the LMA mode, and the LML mode.

According to the technical solution provided in the embodiment of the present disclosure, using a technical means of providing a prediction mode set including an LMA mode and an LML mode for a chrominance component, the accuracy of intra-frame prediction of a current block is improved.

In the following, with reference to FIG. 7 , an intra-frame decoding method for a signal component sampling point of an image block provided in an embodiment of the present disclosure is described.

S701: Obtain, from a video code stream, prediction mode information of a first signal component of a current block.

S702: Determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component includes a prediction mode based on a correlation model, and the prediction mode based on the correlation model is determined depending on a prediction mode of a second signal component of the current block.

In the embodiment of the present disclosure, the prediction mode based on the correlation model includes a prediction mode for calculating a predicted value of a first signal component sampling point of the current block using the correlation model according to a reconstructed value of a second signal component sampling point of the current block and a parameter of the correlation model, and the prediction mode based on the correlation model may include any one of the following prediction modes an LM mode, an LMA mode, and an LML mode.

In the embodiment of the present disclosure, a parameter of the correlation model of the LMA mode is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point above the current block and a reconstructed value of a second adjacent signal component sampling point above the current block, a parameter of the correlation model of the LML mode is obtained through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of the current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block, and a parameter of the correlation model of the LM mode is obtained through calculation according to the reconstructed values of the first adjacent signal component sampling points above and on the left side of the current block and the reconstructed values of the second adjacent signal component sampling points above and on the left side of the current block.

As described above, in the embodiment of the present disclosure, the first signal component may be a chrominance component, and the second signal component may be a luminance component. In the following, the chrominance component and the luminance component are used as an example for description.

In the embodiment of the present disclosure, the chrominance component of the current block may have its own independent chrominance prediction mode, or may share a same chrominance prediction mode with a chrominance component of an adjacent image block. For example, in an existing HEVC encoding and decoding solution, each predicting unit has an independent prediction mode, and one predicting unit may include one or more transform units. In a frame encoding and decoding process of a chrominance component, a prediction operation is performed for the current block based on the transform unit. If one predicting unit includes only one transform unit, the transform unit has its own independent prediction mode, and if one predicting unit includes a plurality of transform units, the plurality of transform units uses a same prediction mode.

A decoding end may adopt an adaptive arithmetic entropy decoding method, variable length decoding, fixed length decoding or another entropy decoding method to obtain, from a code stream, prediction mode information of a chrominance component, where the prediction mode information is expressed by a code word, and then determine a prediction mode of a chrominance component of a current predicting unit according to correspondence between a code word and a prediction mode to determine a prediction mode of a chrominance component of a transform unit in the predicting unit, that is, the current block. Specifically, which entropy decoding method to be adopted depends on a code word designing method of an intra-frame prediction mode for chrominance. A code table shown in Table 3 shows correspondence between an available code word and a prediction mode of a chrominance component.

TABLE 3 Code table of a prediction mode of a chrominance component Prediction Mode of Code Word Chrominance Component 0 DM mode 101 First mode 100 Second mode 110 Planar mode 1110 Vertical mode 11110 Horizontal mode 11111 DC mode

In the embodiment of the present disclosure, the first mode or the second mode is a prediction mode based on a correlation model, and may be one of the LM mode, the LML mode, and the LMA mode. When it is determined that the prediction mode of the chrominance component is the first mode or the second mode, a prediction mode specifically indicated by the first mode or the second mode needs to be obtained based on a preset mapping table according to a prediction mode of a luminance component of the current block. The foregoing mapping table is used at both an encoding end and a decoding end. For example, the prediction modes specifically indicated by the first mode and the second mode may be determined based on a mapping shown in Table 4 according to the prediction mode of the luminance component. Obviously, the mapping has a plurality of combinations, and is not limited to Table 4.

TABLE 4 Mapping between the prediction mode of the luminance component and the first mode and the second mode Intra-frame Prediction Mode for Luminance First Mode Second Mode Vertical mode LM mode LMA mode Horizontal mode LM mode LML mode DC mode LM mode LML mode Another intra-frame LML mode LMA mode prediction mode

A code word of an original prediction mode of the chrominance component in the HEVC solution is a TU code. In this embodiment, a code word 10 of the LM mode is extended, and in addition, suffix code words 1 and 0 are added to distinguish the first mode from the second mode to obtain the code table shown in Table 3. Obviously, other code words may be selected for the first mode and the second mode to form a new code table, and a single TU code, a Huffman code, a fixed length code or another code word, or a combined code word with different code words may also be adopted to specify a corresponding code word for all optional prediction modes of the chrominance component to form a new code table.

For convenience of understanding, in the embodiment of the present disclosure, possible methods of determining the prediction mode of the chrominance component of the current block are briefly described using examples. For example, in some implementation manners, if it is determined, according to the prediction mode information of the chrominance component, that the prediction mode of the chrominance component of the current block is a prediction mode based on a correlation model, that is, the first mode or the second mode shown in Table 3, the prediction mode of the chrominance component of the current block is determined based on Table 4 according to the prediction mode of the luminance component of the current block. For another example, in some implementation manners, the first mode and the second mode shown in Table 3 may also be determined based on Table 4 according to the prediction mode of the luminance component of the current block, and in this case, the prediction mode of the chrominance component of the current block may be determined directly according to the prediction mode information of the chrominance component.

For the code table shown in Table 3, it may be considered that the prediction mode set of the first signal component of the current block includes at least one prediction mode of the DM mode, the planar mode, the vertical mode, the horizontal mode, the DC mode, and the prediction mode based on the correlation model.

S703: Obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block.

In the embodiment of the present disclosure, if the prediction mode of the first signal component of the current block that is determined from the prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block is the LMA mode, the obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block includes calculating, based on the correlation model, the predicted value of the first signal component sampling point of the current block according to the reconstructed value of the second signal component sampling point of the current block and the parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to the reconstructed value of the first adjacent signal component sampling point above the current block and the reconstructed value of the second adjacent signal component sampling point above the current block.

If the prediction mode of the first signal component of the current block that is determined from the prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block is the LML mode, the obtaining a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block includes calculating, based on the correlation model, the predicted value of the first signal component sampling point of the current block according to the reconstructed value of the second signal component sampling point of the current block and the parameter of the correlation model, where the parameter of the correlation model is obtained through calculation according to the reconstructed value of the first adjacent signal component sampling point on the left side of the current block and the reconstructed value of the second adjacent signal component sampling point on the left side of the current block.

A specific prediction method has been described in detail in the embodiments shown in FIG. 4 and FIG. 5 , and is not described herein again.

S704: Obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

A reconstructed value of a chrominance component sampling point of the current block is calculated based on an obtained predicted value of the chrominance component sampling point of the current block and a residual value of the chrominance component sampling point of the current block, where the residual value is obtained through reconstruction. The residual value of the chrominance component sampling point of the current block may be obtained based on residual information of the chrominance component sampling point of the current block, where the residual information is obtained from a video code stream. Specifically, the H.264/AVC standard or a method in the existing HEVC solution may be adopted to reconstruct the residual value of the chrominance component sampling point of the current block, which is not described herein again.

In some implementation manners, another code table may be adopted in S702, and a code table shown in Table 5 shows correspondence between an available code word and a prediction mode of a chrominance component.

TABLE 5 Code table of a prediction mode of a chrominance component Prediction Mode of Code Word Chrominance Component 0 DM mode 10 First mode 110 Planar mode 1110 Vertical mode 11110 Horizontal mode 11111 DC mode

In the embodiment of the present disclosure, the first mode is a prediction mode based on a correlation model, and may be one of the LM mode, the LML mode, and the LMA mode. When it is determined that the prediction mode of the chrominance component is the first mode, a prediction mode specifically indicated by the first mode needs to be determined based on a preset mapping table according to a prediction mode of a luminance component of the current predicting unit. The foregoing mapping table is used at both an encoding end and a decoding end. Table 6 shows a mapping between an available prediction mode of the luminance component and the first mode. Obviously, the mapping has a plurality of combinations, and is not limited to Table 6.

TABLE 6 Mapping between the prediction mode of the luminance component and the first mode Prediction Mode of Luminance Component First Mode Vertical mode LMA mode Horizontal mode LML mode DC mode LML mode Another intra-frame LM mode prediction mode

A code word of an original prediction mode of the chrominance component in the HEVC solution is a TU code. In this embodiment, code words of all the optional prediction modes of the chrominance component still use TU codes. Obviously, a single Huffman code, a fixed length code or another code word, or a combined code word with different code words may also be adopted to specify a corresponding code word for all the optional prediction modes of chrominance component to form a new code table.

For convenience of understanding, in the embodiment of the present disclosure, possible methods of determining the prediction mode are briefly described using examples. For example, in some implementation manners, if it is determined, according to the prediction mode information of the chrominance component, that the prediction mode of the chrominance component of the current block is a prediction mode based on a correlation model, that is, the first mode shown in Table 5, the prediction mode of the chrominance component of the current block is determined based on Table 6 according to the prediction mode of the luminance component of the current block. For another example, in some implementation manners, the first mode shown in Table 5 may be determined based on Table 6 according to the prediction mode of the luminance component of the current block, and in this case, the prediction mode of the chrominance component of the current block may be determined directly according to the prediction mode information of the chrominance component.

For the code table shown in Table 5, it may be considered that the prediction mode set of the first signal component of the current block includes at least one prediction mode of the DM mode, the planar mode, the vertical mode, the horizontal mode, the DC mode, and the prediction mode based on the correlation model.

According to the technical solution provided in the embodiment of the present disclosure, using a technical means of providing a prediction mode set including an LMA mode and an LML mode for a chrominance component, the accuracy of intra-frame prediction of a current block is improved.

With the technical solution provided in the embodiment of the present disclosure, the accuracy of intra-frame prediction of a current block is improved, and beneficial effects of the embodiment of the present disclosure are described in detail from the following two aspects.

The first aspect is a subjective aspect. FIG. 8 shows a V component of a reconstructed image obtained using the solution in the embodiment of the present disclosure, and FIG. 9 shows a V component of a reconstructed image obtained using an existing HEVC solution (that is, prediction modes of a chrominance component include only a DM mode, an LM mode, a horizontal mode, a vertical mode, a planar mode, and a DC mode). It can be seen by comparing FIG. 8 and FIG. 9 that the reconstructed image shown in FIG. 8 is sharper, and has clearer details. This is because two optional prediction modes of the chrominance component that are newly added in the embodiment of the present disclosure enable intra-frame prediction of the chrominance component to be more accurate such that a prediction residual is smaller. Accordingly, distortion caused by quantization of the prediction residual is not obvious, thereby obtaining a better reconstructed image.

In the second aspect, comparison that uses a method for objectively evaluating Blue-ray Disc Bitrate (BD-Bitrate) shows that the embodiment of the present disclosure has better rate distortion performance. Specific data is shown in Table 7. Values shown in Table 7 indicate a percentage of a bit rate saved by the embodiment of the present disclosure, compared with the existing HEVC solution. If the percentage is negative, the bit rate is saved, and if the percentage is positive, the bit rate is increased.

TABLE 7 All Intra HE All Intra LC Y U V Y U V Class A −0.2% −9.1% −9.9% −0.1% −9.3% −10.1% Class B −0.1% −2.7% −2.2%  0.0% −2.8%  −2.2% Class C −0.2% −2.3% −2.9% −0.1% −2.2%  −2.7% Class D −0.1% −2.0% −2.2% −0.1% −2.0%  −2.2% Class E −0.1% −1.5% −1.8%  0.0% −1.9%  −1.8% Class F −0.3% −2.6% −2.9% −0.2% −2.2%  −2.6% Overall −0.2% −3.4% −3.6% −0.1% −3.4%  −3.6% −0.2% −3.4% −3.6% −0.1% −3.4%  −3.5% Enc Time[%] 105% 107% Dec Time[%] 100% 100%

FIG. 10 is a rate-distortion diagram showing comparison of results of encoding a sequence SteamLocomotive using the embodiment of the present disclosure and the existing HEVC solution HEVC Test Model (HM) 4.0. It can be seen that, with the method provided in the present disclosure, encoding performance is definitely enhanced, and subjective quality is improved.

As shown in FIG. 11 , an embodiment of the present disclosure provides a prediction apparatus for a signal component sampling point of an image block, which includes a first parameter unit 1101 configured to obtain a parameter of a correlation model through calculation according to a reconstructed value of a first adjacent signal component sampling point above a current block and a reconstructed value of a second adjacent signal component sampling point above the current block, and a first predicting unit 1102 configured to calculate, based on the correlation model, a predicted value of a first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and the parameter of the correlation model.

The apparatus provided in the embodiment of the present disclosure is configured to implement the method shown in FIG. 4 , which is not described herein again.

As shown in FIG. 12 , an embodiment of the present disclosure provides a prediction apparatus for a signal component sampling point of an image block, which includes a second parameter unit 1201 configured to obtain a parameter of a correlation model through calculation according to a reconstructed value of a first adjacent signal component sampling point on the left side of a current block and a reconstructed value of a second adjacent signal component sampling point on the left side of the current block, and a second predicting unit 1202 configured to calculate, based on the correlation model, a predicted value of a first signal component sampling point of the current block according to a reconstructed value of a second signal component sampling point of the current block and the parameter of the correlation model.

The apparatus provided in the embodiment of the present disclosure is configured to implement the method shown in FIG. 5 , which is not described herein again.

As shown in FIG. 13 , an embodiment of the present disclosure provides an intra-frame decoding apparatus for a signal component sampling point of an image block, which includes a first obtaining unit 1301 configured to obtain, from a video code stream, prediction mode information of a first signal component of a current block, a first determining unit 1302 configured to determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component of the current block includes at least one of an LMA mode and an LML mode, a third predicting unit 1303 configured to obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and a first calculating unit 1304 configured to obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

The apparatus provided in the embodiment of the present disclosure is configured to implement the method shown in FIG. 6 , which is not described herein again.

According to the apparatus provided in the embodiment of the present disclosure, using a technical means of providing a prediction mode set including an LMA mode and an LML mode for a chrominance component, the accuracy of intra-frame prediction of a current block is improved.

As shown in FIG. 14 , an embodiment of the present disclosure provides an intra-frame decoding apparatus for a signal component sampling point of an image block, which includes a second obtaining unit 1401 configured to obtain, from a video code stream, prediction mode information of a first signal component of a current block, a second determining unit 1402 configured to determine a prediction mode of the first signal component of the current block from a prediction mode set of the first signal component of the current block according to the prediction mode information of the first signal component of the current block, where the prediction mode set of the first signal component includes a prediction mode based on a correlation model, and the prediction mode based on the correlation model is determined depending on a prediction mode of a second signal component of the current block, a fourth predicting unit 1403 configured to obtain a predicted value of a first signal component sampling point of the current block according to the prediction mode of the first signal component of the current block, and a second calculating unit 1404 configured to obtain a reconstructed value of the first signal component sampling point of the current block according to the predicted value of the first signal component sampling point of the current block.

The apparatus provided in the embodiment of the present disclosure is configured to implement the method shown in FIG. 7 , which is not described herein again.

According to the apparatus provided in the embodiment of the present disclosure, using a technical means of providing a prediction mode set including an LMA mode and an LML mode for a chrominance component, the accuracy of intra-frame prediction of a current block is improved.

The technology provided in the embodiments of the present disclosure may be applied to the field of digital signal processing and may be implemented using an encoder and a decoder. A video encoder and decoder are widely applied to various communications devices or electronic devices, such as a digital television, a set top box, a media gateway, a mobile phone, a wireless apparatus, a personal digital assistant (PDA), a handheld or portable computer, a global positioning system (GPS) receiver/navigator, a camera, a video player, a video camera, a video tape recorder, a monitoring device, and a video conference and a videophone device. Such a device includes a processor, a memory, and an interface for data transmission. A video codec may be directly implemented by a digital circuit or a chip, such as a digital signal processor (DSP), or may be implemented by software code driving a processor to execute a procedure in the software code.

Persons of ordinary skill in the art may understand that all or a part of the steps of the foregoing method embodiments of the present disclosure may be implemented by a program instructing relevant hardware. The foregoing program may be stored in a computer readable storage medium. When the program is run, the steps of the foregoing method embodiments are performed. The foregoing storage medium includes any medium that is capable of storing program code, such as a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disc.

Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure rather than limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof, as long as such modifications or replacements do not make the essence of corresponding technical solutions depart from the spirit and scope of the technical solutions in the embodiments of the present disclosure. 

The invention claimed is:
 1. A chrominance component prediction method, comprising: determining a prediction mode of a chrominance component of a current block from a prediction mode set that comprises a linear method (LM) mode, a linear model above (LMA) mode, and a linear model left (LML) mode; and encoding prediction mode information of the chrominance component to a bitstream, wherein the prediction mode information indicates the prediction mode.
 2. The chrominance component prediction method of claim 1, wherein the prediction mode information comprises a code word, and wherein encoding the prediction mode information of the chrominance component comprises encoding the prediction mode information of the chrominance component according to a correspondence between the code word and the prediction mode.
 3. The chrominance component prediction method of claim 2, wherein the code word has either 2 bits or 3 bits, wherein the code word having 2 bits indicates the LM mode, and wherein the code word having 3 bits indicates the LMA mode or the LML mode.
 4. The chrominance component prediction method of claim 3, wherein the code word is a first value of 10, a second value of 110, or a third value of 111, and wherein the first value indicates the LM mode, the second value indicates the LMA mode, and the third value indicates the LML mode.
 5. The chrominance component prediction method of claim 2, further comprising coding the code word according to a truncated unary (TU) code.
 6. The chrominance component prediction method of claim 1, wherein the prediction mode is the LMA mode, and wherein the chrominance component prediction method further comprises calculating a predicted value of the chrominance component of the current block based on reference samples only in a neighboring block on a top side of the current block.
 7. The chrominance component prediction method of claim 1, wherein the prediction mode is the LML mode, and wherein the chrominance component prediction method further comprises calculating a predicted value of the chrominance component of the current block based on reference samples only in a neighboring block on a left side of the current block.
 8. The chrominance component prediction method of claim 1, wherein the prediction mode is the LM mode, and wherein the chrominance component prediction method further comprises calculating a predicted value of the chrominance component of the current block based on first reference samples above the current block and second reference samples on a left side of the current block.
 9. An apparatus for chrominance component prediction, the apparatus comprising: a memory configured to store instructions; and one or more processors coupled to the memory and configured to execute the instructions to cause the apparatus to be configured to: determine a prediction mode of a chrominance component of a current block from a prediction mode set that comprises a linear method (LM) mode, a linear model above (LMA) mode, and a linear model left (LML) mode; and encode prediction mode information of the chrominance component to a bitstream, wherein the prediction mode information indicates the prediction mode.
 10. The apparatus of claim 9, wherein the prediction mode information comprises a code word, and wherein when executed by the one or more processors, the instructions further cause the apparatus to be configured to encode the prediction mode information of the chrominance component according to a correspondence between the code word and the prediction mode.
 11. The apparatus of claim 10, wherein the code word has either 2 bits or 3 bits, wherein the code word having 2 bits indicates the LM mode, and wherein the code word having 3 bits indicates the LMA mode or the LML mode.
 12. The apparatus of claim 11, wherein the code word is a first value of 10, a second value of 110, or a third value of 111, and wherein the first value indicates the LM mode, the second value indicates the LMA mode, and the third value indicates the LML mode.
 13. The apparatus of claim 10, wherein when executed by the one or more processors, the instructions further cause the apparatus to code the code word according to a Truncated Unary (TU) code.
 14. The apparatus of claim 9, wherein the prediction mode is the LMA mode, and wherein when executed by the one or more processors, the instructions further cause the apparatus to be configured to calculate a predicted value of the chrominance component of the current block based on reference samples only in a neighboring block on a top side of the current block.
 15. The apparatus of claim 9, wherein the prediction mode is the LML mode, and wherein when executed by the one or more processors, the instructions further cause the apparatus to be configured to calculate a predicted value of the chrominance component of the current block based on reference samples only in a neighboring block on a left side of the current block.
 16. A non-transitory storage medium storing a first bitstream that comprises a computer-executable program that, when executed by one or more processors, causes an apparatus for chrominance component prediction to: determine a prediction mode of a chrominance component of a current block from a prediction mode set that comprises a linear method (LM) mode, a linear model above (LMA) mode, and a linear model left (LML) mode; and encode prediction mode information of the chrominance component to a second bitstream, wherein the prediction mode information indicates the prediction mode.
 17. The non-transitory storage medium of claim 16, wherein the prediction mode information comprises a code word, and wherein when executed by the one or more processors, the computer-executable program further causes the apparatus to encode the prediction mode information of the chrominance component according to a correspondence between the code word and the prediction mode.
 18. The non-transitory storage medium of claim 17, wherein the code word has either 2 bits or 3 bits, wherein the code word having 2 bits indicates the LM mode, and wherein the code word having 3 bits indicates the LMA mode or the LML mode.
 19. The non-transitory storage medium of claim 18, wherein the code word is a first value of 10, a second value of 110, or a third value of 111, and wherein the first value indicates the LM mode, the second value indicates the LMA mode, and the third value indicates the LML mode.
 20. The non-transitory storage medium of claim 17, wherein when executed by the one or more processors, the computer-executable program further causes the apparatus to code the code word according to a Truncated Unary (TU) code. 